<template>
  <div>
    <div class="sticky-container">
      <div class="title">title1</div>
      <div class="content">content1</div>
      <div class="title">title2</div>
      <div class="content">content2</div>
      <div class="title">title3</div>
      <div class="content">content3</div>
      <div class="title">title4</div>
      <div class="content">content4</div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
    }
  },
}
</script>

<style scoped>
  .sticky-container {
    background: #ffffff;
    width: 100%;
    height: 16rem;
    margin: 0 auto;
  }
  .title {
    position: sticky;
    height: .6rem;
    background: #11bbe6;
    top: .44rem;
    padding-left: .1rem;
    line-height: .6rem;
    font-size: .15rem;
  }
  .content {
    height: 2rem;
    font-size: .33rem;
    background: #cccccc;
  }
</style>
